# 查找以ap_开头的进程，并获取PID
#!/bin/bash
index=1
ps -eo pid,%cpu,%mem,comm --sort=-%cpu | grep 'rads_' | while read -r pid cpu mem comm; do
    echo "Command: $index. $comm ,PID: $pid, CPU: $cpu%, MEM: $mem%"  
    ls /proc/$pid/task
	((index++))
done
